package com.lvcoding.auth2.jpah2.dao;

import com.lvcoding.auth2.jpah2.entity.Account;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @author wuyanshen
 * @description 描述
 * @date 2022-02-22 上午11:20
 */
@Repository
public interface AccountRepository extends JpaRepository<Account, Integer> {

    Optional<Account> findByUsername(String username);
}
